/*
 * stdio_opt.h
 *
 *  Created on: 2024-01-01
 *      Author: liaofd
 */

#ifndef __C_STDIO_REDIRECT_H__
#define __C_STDIO_REDIRECT_H__

#include "stdio.h"
#include "string.h"

#define STDIO_USE_UART
#define xSTDIO_ETH_W5500_SOCKET
#define xSTDIO_ETH_SOCKET

#ifdef STDIO_USE_UART
#include "uart_bsp.h"
extern UART_HandleTypeDef *printf_huart;
#endif

#ifdef STDIO_ETH_W5500_SOCKET
#include "eth_w5500/app_ethernet.h"
extern app_socket_t *printf_socket;
#endif

#ifdef STDIO_ETH_SOCKET
#include "lwip/opt.h"
#include "lwip/sys.h"
#include "lwip/sockets.h"
#include "lwip/mem.h"
#endif

#endif /* __REDIRECT_H__ */
